"use strict";
var __extends = (this && this.__extends) || function (d, b) {
    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
    function __() { this.constructor = d; }
    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var BaseService_1 = require('./BaseService');
var GroupsDao_1 = require('../dao/GroupsDao');
var GroupsService = (function (_super) {
    __extends(GroupsService, _super);
    function GroupsService() {
        _super.call(this);
        this.groupsDao = new GroupsDao_1.GroupsDao();
    }
    GroupsService.prototype.addGroup = function (group, callback) {
        this.groupsDao.add(group, callback);
    };
    GroupsService.prototype.updateGroup = function (group, callback) {
        this.groupsDao.update(group, callback);
    };
    GroupsService.prototype.getGroup = function (groupId, callback) {
        this.groupsDao.get(groupId, callback);
    };
    GroupsService.prototype.getGroups = function (projectId, callback) {
        this.groupsDao.gets(projectId, callback);
    };
    GroupsService.prototype.deleteGroup = function (groupId, callback) {
        this.groupsDao.delete(groupId, callback);
    };
    return GroupsService;
}(BaseService_1.BaseService));
exports.GroupsService = GroupsService;
